package aufgabe_03;

public class Document extends AbstractDocument{

	public void setTitle (String titleText)
	{
		this.title = new String(titleText);
	}
	 public void setBody (String bodyText)
	 {
		 this.body = new String(bodyText);
	 }
	 public String getTitle()
	 {
		 return this.title;
	 }
	 public String getBody()
	 {
		return this.body; 
	 }
	 public void print()
	 {
		 System.out.println(this.title);
		 System.out.println(this.body);
	 }
}
